package service;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//package Server;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Islam
 */
public interface SessionInt extends Remote {

    ChatRoomInt makeNewRoom() throws RemoteException;

    void addChatRoom(ChatRoomInt room) throws RemoteException;

    public ArrayList<ChatRoomInt> getChatRooms() throws RemoteException;

    void removeChatRoom(int ID) throws RemoteException;

    ChatRoomInt getChatRoom(int ID) throws RemoteException;

    void logout() throws RemoteException;

    public String getSessionEmail() throws RemoteException;

    public void setSessionEmail(String sessionEmail) throws RemoteException;

    void testExisting() throws RemoteException;

    public String getName() throws RemoteException;
}
